package com.ssm.auth.application.convert;


import com.ssm.auth.domain.bo.AuthUserBO;
import com.ssm.auth.entity.AuthUserDTO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface AuthUserDtoConvert {
    AuthUserDtoConvert INSTANCE = Mappers.getMapper(AuthUserDtoConvert.class);

    //dto 转 bo
    AuthUserBO userDtoToBo(AuthUserDTO authUserDTO);

    //bo To Dto
    AuthUserDTO userBoToDto(AuthUserBO authUserBO);

    //bos To Dtos
    List<AuthUserDTO> bosToDtos(List<AuthUserBO> authUserBOs);

}
